<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<script type="text/javascript">
$(function(){
	var frozenColumns = [[{field : 'id',title : '编号',width : 60,checkbox : true,halign:'center'}]];
	var columns = [[
				  <#list columnList as column>
				  	<#if column.columnName != "id">
					{field : '${column.columnName}',title : '${column.columnName}',width : 150,halign:'center',align:'center'}<#if column_has_next>,</#if>
				    </#if>
				  </#list>
				  ]];
	jfinal.datagrid('dg_${r"${timer }"}', '${r"${contextPath }"}/${r"${model }"}', 'tb_${r"${timer }"}', frozenColumns, columns);
});
</script>
<div id="tb_${r"${timer }"}">
	<div id="tb" style="padding:5px;height:auto">
        <div style="margin-bottom:5px">
            <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="jfinal.onAdd('dg_${r"${timer }"}', 'dialog_${r"${timer }"}', '${r"${contextPath }"}/${r"${model }"}/add', '新增', 600, 300)" >新增</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="jfinal.onUpdate('dg_${r"${timer }"}', 'dialog_${r"${timer }"}', '${r"${contextPath }"}/${r"${model }"}/edit', '修改', 600, 300)" >修改</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="jfinal.onDelete('dg_${r"${timer }"}', '${r"${contextPath }"}/${r"${model }"}/delete')" >删除</a>
        </div>
         <div style="margin-bottom:5px">
         <form id="queryFrom_${r"${timer }"}" action="">
	        	查询条件: <input class="easyui-validatebox" style="width: 100px;" name="id_string_eq" />
	            <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="jfinal.onQuery('queryFrom_${r"${timer }"}', 'dg_${r"${timer }"}')" >查询</a>
	            <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="jfinal.onReset('queryFrom_${r"${timer }"}', 'dg_${r"${timer }"}')" >重置</a>
	      </form>
	      </div>
    </div>
</div>
<div id="dialog_${r"${timer }"}"></div>
<table id="dg_${r"${timer }"}"></table>